<?php if (!defined('THINK_PATH')) exit();?><form id="pagerForm" method="post" action="/tuyouApp/admin/user/index"> 
    <input type="hidden" name="pageNum" value="<?php echo ($_REQUEST["pageNum"]); ?>" />
    <input type="hidden" name="numPerPage" value="<?php echo ($_REQUEST["numPerPage"]); ?>" /> 
    <input type="hidden" name="_order" value="<?php echo ($_REQUEST["_order"]); ?>" />
    <input type="hidden" name="_sort" value="<?php echo ($_REQUEST["_sort"]); ?>" />    
</form>


<div class="pageHeader">
    <form onsubmit="return navTabSearch(this);" action="/tuyouApp/admin/user/index" method="post">
	<div class="searchBar">		
            <table class="searchContent">
                <tr>
                    <td>
                        用户名：<input type="text" name="" />
                    </td>
                    <td>
                        昵　称：<input type="text" name="nickname" />
                    </td>
                    <td>
                        公司名：<input type="text" name="companyName" />
                    </td>
                    <td>
                        注册时间：<input type="text" name="add_time" class="date" readonly="true" />
                    </td>
                </tr>
            </table>
            <div class="subBar">
                <ul>
                    <li><div class="buttonActive"><div class="buttonContent"><button type="submit">检索</button></div></div></li>
                </ul>
            </div>
	</div>
    </form>
</div>
<div class="pageContent">
    <div class="panelBar">
        <ul class="toolBar">
            <li><a title="确实要删除这些记录吗?" target="selectedTodo" rel="ids" href="/tuyouApp/admin/user/del/id/{id_user}" class="delete"><span>批量删除</span></a></li>
            
            <li><a title="确实审核这些记录吗?" target="selectedTodo" rel="ids" postType="string" href="/tuyouApp/admin/user/shenhe" class="add"><span>批量审核</span></a></li>
          
            <li><a class="add" href="/tuyouApp/admin/user/show" target="dialog" mask="true" height="600" width="700"><span>添加</span></a></li>
            <!--
            <li><a class="add" href="/tuyouApp/admin/user/show" target="dialog" mask="true" height="600" width="700"><span>添加</span></a></li>
            <li><a class="delete" href="/tuyouApp/admin/user/del/id/{id_user}" target="ajaxTodo" title="确定要删除吗?"><span>删除</span></a></li>
            -->
            <li><a class="edit" href="/tuyouApp/admin/user/show/id/{id_user}" target="dialog" mask="true" height="600" width="700"><span>修改</span></a></li>
            <li class="line">line</li>
            <!--<li><a class="icon" href="demo/common/dwz-team.xls" target="dwzExport" targetType="navTab" title="实要导出这些记录吗?"><span>导出EXCEL</span></a></li>-->
        </ul>
    </div>
    <table class="table" width="100%" layoutH="138">
        <thead>
            <tr align="center">
                <th width="22"><input type="checkbox" group="ids[]" class="checkboxCtrl"></th>
                <th width="80"  align="center">序号</th>
                <th width="200" align="center">昵称</th>
                <th width="100" align="center">公司名</th>
                <th width="100" align="center">电话</th>
                <th width="100" align="center">地区</th>
                <th width="100" align="center">积分</th>
                <th width="100" align="center">注册时间</th>
                <th width="100" align="center">状态</th>
                <th width="100" align="center">操作</th>
            </tr>
        </thead>
        <tbody>
            <?php $i=1;?> 
            <?php if(is_array($userList)): foreach($userList as $key=>$list): ?><tr target="id_user" rel="<?php echo ($list["id"]); ?>">
                <td><input name="ids[]" value="<?php echo ($list["id"]); ?>" type="checkbox"></td>
                <td><?php echo ($i); ?></td> 
                <td><?php echo ($list["nickname"]); ?></td>
                <td><?php echo ($list["companyName"]); ?></td>
                <td><?php echo ($list["tel"]); ?></td>
                <td><?php echo ($list["regionId"]); ?></td>
                <td><?php echo ($list["integral"]); ?></td>
                <td><?php echo (date("Y-m-d H:i",$list["add_time"])); ?></td>  
                <td><?php echo (getStatus($list["state"])); ?></td>
                <td><a title="删除" target="ajaxTodo" href="/tuyouApp/admin/user/del/id/<?php echo ($list["id"]); ?>" class="btnDel">删除</a></td>
            </tr>
            <?php $i++; endforeach; endif; ?>
        </tbody>
    </table>
    <div class="panelBar">
        <div class="pages">
            <span>显示</span>
            <select class="combox" name="numPerPage" onchange="navTabPageBreak({numPerPage:this.value})">
                <option value="20">20</option>
                <option value="50">50</option>
                <option value="100">100</option>
                <option value="200">200</option>
            </select>
            <span>条，共<?php echo ($totalCount); ?>条</span>          
        </div>
        <div class="pagination" targetType="navTab" totalCount="<?php echo ($totalCount); ?>" numPerPage="<?php echo ($numPerPage); ?>" pageNumShown="6"  currentPage="<?php echo ($currentPage); ?>"></div>
    </div>
</div>